package com.lagou.cluster;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.session.config.annotation.web.http.EnableSpringHttpSession;

@SpringBootApplication
@EnableSpringHttpSession
@MapperScan(basePackageClasses = {com.lagou.cluster.mapper.UserMapper.class})
public class ClusterApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(ClusterApplication.class, args);
	}


	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(ClusterApplication.class);
	}
}
